package com.aaa.service;
import com.aaa.entity.Dept;
import com.aaa.entity.Menu;
import com.aaa.entity.User;
import com.aaa.vo.MenuVo;
import com.aaa.vo.Result;
import com.aaa.vo.UserVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface MenuService extends IService<Menu> {
    public List<Menu> findByUserid(Long userid);

    Result<List<Menu>> getLeftMenu();

    Result<List<Menu>> getAll();

    Result<List<Integer>> findByRoleId(Long roleId);

    Result<String> confirmMenu(Long roleId, Long[] menuIds);

    Result<IPage<Menu>> MenuPage(Integer currentPage, Integer pageSize, MenuVo menuVo);

    boolean saveAndUpdate(Menu menu);

    //删除
    boolean delById(Long id);
}
